<template>
  <div class="wrap">
    <CTable :title="title" :columns="columns" :data="list">
      <template v-slot:button>
        <el-button>新增</el-button>
      </template>
    </CTable>
  </div>
</template>
<script setup lang="ts">
import CTable from '@/components/CTable/CTable.vue'
import { useBizStore } from '@/store/modules/biz'
const props = defineProps(['typebCode', 'name', 'transactionId'])
const store = useBizStore(props.transactionId)()
const list = computed(() => {
  return store[props.name]?.materialList
})

const title = '申请材料'
const columns = [
  { label: '申请材料', prop: 'name' },
  { label: '材料来源', prop: 'fileSource' },
  { label: '份数', prop: 'number' },
  { label: '选择', prop: 'selected' },
]
</script>

<style lang="scss" scoped>
.wrap {
  margin: 10px;
}
</style>
